#include "../clibs/include/allocator.h"
#include <stdio.h>
#include <time.h>

int main(int arc, char **argv) {
  memory_pool_level_init(0, 100);
  memory_pool_level_init(1, 100);
  clock_t pre = clock();
  for (int i = 0; i < 100; ++i) {
    memory_pool_alloc(1024);
  }
  printf("pool use = %lu \n", clock() - pre);

  pre = clock();
  for (int i = 0; i < 100; ++i) {
    malloc(1024);
  }
  printf("malloc use = %lu \n", clock() - pre);
  return 1;
}